package com.yonyou.gmcc.gateway.wechat.service.interfaces;

import java.util.List;
import java.util.Map;

import org.marketing.common.dto.testdrivingAm.TestDrivingAmDto;
import org.marketing.common.entity.Check;
import org.marketing.common.hystrix.MyErrorDecoder;
import org.marketing.common.hystrix.YYFeignClient;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.yonyou.gmcc.gateway.wechat.common.ApiVersionConsts;
@FeignClient(name="service-wechat")
public interface ProviderValidateToWechatServiceInterface {
	@RequestMapping(value = ApiVersionConsts.BASE_PATH+"/"+ApiVersionConsts.VERSION+"/providerValidateService"+"/index/{wxToken}", method = RequestMethod.POST,consumes = "application/json;UTF-8")
	String index(@PathVariable("wxToken") String wxToken,@RequestBody Check tokenModel);//

	@RequestMapping(value = ApiVersionConsts.BASE_PATH+"/"+ApiVersionConsts.VERSION+"/providerValidateService"+"/indexList/{wxToken}", method = RequestMethod.POST,consumes = "application/json;UTF-8")
	Map<String,String> indexList(@PathVariable("wxToken") String wxToken,@RequestBody Check tokenModel);//
	
	@RequestMapping(value = ApiVersionConsts.BASE_PATH+"/"+ApiVersionConsts.VERSION+"/providerValidateService"+"/indexDto/{wxToken}", method = RequestMethod.POST,consumes = "application/json;UTF-8" )
	Map<String,Object> indexDto(@PathVariable("wxToken") String wxToken) ;
	
    @RequestMapping(value = ApiVersionConsts.BASE_PATH+"/"+ApiVersionConsts.VERSION+"/providerValidateService"+"/genToken" ,method = RequestMethod.GET,consumes = "application/json;UTF-8")
	public String genToken();
	
	@RequestMapping(value = ApiVersionConsts.BASE_PATH+"/"+ApiVersionConsts.VERSION+"/providerValidateService"+"/validate/{wxToken}", method = RequestMethod.POST,consumes = "application/json;UTF-8")
	String validate(@PathVariable("wxToken") String wxToken,@RequestBody Check tokenModel);
}
